home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY-2.2 / SCENES / level2 / LPOPS2 < prev    next >
Text File  |  1993-09-28  |  5KB  |  267 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By Tom Price
  4.  
  5.  
  6. #include "shapes.inc"
  7. #include "colors.inc"
  8. #include "textures.inc"
  9.  
  10. camera {
  11.    location <0.0, 35.0, -150.0>
  12.    up <0.0, 1.0, 0.0>
  13.    right <4/3, 0.0, 0.0>
  14.    look_at <0.0, 0.0, 0.0>
  15. }
  16.  
  17. fog {
  18.    colour red 0.5 green 0.5 blue 0.5 distance 1000.0
  19. }
  20.  
  21. /*The floor*/
  22. plane { y, -60.0
  23.    pigment {
  24.       checker colour Brown colour LightGray
  25.       quick_colour Gray40
  26.       scale 40.0
  27.       translate -5.0*x
  28.    }
  29.    finish {
  30.       crand 0.05 
  31.       ambient 0.2
  32.       diffuse 0.7
  33.       reflection 0.3
  34.       phong 1.0
  35.       phong_size 20.0
  36.    }
  37. }
  38.  
  39. /*The Sky*/
  40. sphere { <0.0, -40000.0, 0.0>, 50000.0
  41.    pigment {
  42.       Bright_Blue_Sky
  43.       quick_colour Blue
  44.       scale <6000.0, 3000.0, 3000.0>
  45.       rotate -30*y
  46.    }
  47.    finish {
  48.       crand 0.05 
  49.       ambient 0.7
  50.       diffuse 0.0
  51.    }
  52. }
  53.  
  54. union {
  55.    intersection {
  56.       sphere { <0.0, 0.0, 0.0>, 40.0 }
  57.       object { Cylinder_Z scale <20.0, 20.0, 1.0> inverse }
  58.  
  59.       pigment { colour red 0.6 green 0.6 blue 0.0 }
  60.       finish {
  61.          crand 0.05
  62.          ambient 0.1
  63.          diffuse 0.7
  64.          reflection 0.7
  65.          brilliance 6.0
  66.          specular 0.5
  67.       }
  68.    }
  69.  
  70.    union {
  71.       triangle {
  72.          <-1.0, 0.0, -0.5773502>
  73.          < 1.0, 0.0, -0.5773502>
  74.          < 0.0, 0.0,  1.1547005>
  75.  
  76.          pigment { Gold }
  77.          finish {
  78.             crand 0.05
  79.             ambient 0.1
  80.             diffuse 0.7
  81.             reflection 0.4
  82.             brilliance 6.0
  83.             specular 0.5
  84.          }
  85.       }
  86.  
  87.       triangle {
  88.          <-1.0, 0.0, -0.5773502>
  89.          < 0.0, 0.0,  1.1547005>
  90.          < 0.0, 1.6329931,  0.0>
  91.  
  92.          pigment { Gold }
  93.          finish {
  94.             crand 0.05
  95.             ambient 0.1
  96.             diffuse 0.7
  97.             reflection 0.4
  98.             brilliance 6.0
  99.             specular 0.5
  100.          }
  101.       }
  102.  
  103.       triangle {
  104.          <1.0, 0.0, -0.5773502>
  105.          <0.0, 0.0, 1.1547005>
  106.          <0.0, 1.6329931,  0.0>
  107.  
  108.          pigment { Gold }
  109.          finish {
  110.             crand 0.05
  111.             ambient 0.1
  112.             diffuse 0.7
  113.             reflection 0.4
  114.             brilliance 6.0
  115.             specular 0.5
  116.          }
  117.       }
  118.  
  119.       triangle {
  120.          <-1.0, 0.0, -0.5773502>
  121.          < 1.0, 0.0, -0.5773502>
  122.          < 0.0, 1.6329931,  0.0>
  123.  
  124.          pigment { colour red 0.5 green 0.4 blue 0.0 }
  125.          finish {
  126.             crand 0.05
  127.             ambient 0.4
  128.             diffuse 0.6
  129.             reflection 0.2
  130.             brilliance 6.0
  131.          }
  132.       }
  133.  
  134.       translate -0.4082886*y
  135.       scale 15.0
  136.       rotate <-45.0, -50.0, 10.0>
  137.    }
  138.  
  139.    intersection {
  140.       object { Cylinder_Y scale <7.0, 1.0, 7.0> }
  141.       plane { y, -20.0 }
  142.  
  143.       pigment {
  144.          Pine_Wood
  145.          scale <10.0, 100.0, 10.0> 
  146.       }
  147.       finish {
  148.          crand 0.05
  149.          ambient 0.1
  150.          diffuse 0.7
  151.          reflection 0.5
  152.          specular 0.5
  153.       }
  154.    }
  155.  
  156.    translate <10.0, 20.0, 60.0>
  157. }
  158.  
  159. union {
  160.    sphere {
  161.       <0.0, 0.0, 0.0>, 20.0
  162.       texture {
  163.          Glass
  164.          finish { crand 0.05 }
  165.       }
  166.    }          
  167.  
  168.    intersection {
  169.       object { Cylinder_Y scale <3.0, 1.0, 3.0> }
  170.       plane { y, 0.0 }
  171.  
  172.       pigment {
  173.          Pine_Wood
  174.          scale <10.0, 50.0, 10.0>
  175.       }
  176.       finish {
  177.          crand 0.05
  178.          ambient 0.1
  179.          diffuse 0.7
  180.          reflection 0.5
  181.          specular 0.5
  182.       }
  183.    }
  184.  
  185.    translate <-40.0, -5.0, -0.0>
  186. }
  187.  
  188. union {
  189.    sphere { <0.0, 0.0, 0.0>, 15.0
  190.       pigment { colour red 0.0 green 0.6 blue 0.3 }
  191.       finish {
  192.          crand 0.05
  193.          ambient 0.1
  194.          diffuse 0.5
  195.          reflection 0.5
  196.          brilliance 3.0
  197.          specular 0.1
  198.       }
  199.    }
  200.  
  201.    intersection {
  202.       object { Cylinder_Y scale <3.0, 1.0, 3.0> }
  203.       plane { y, 0.0 }
  204.  
  205.       pigment {
  206.          Pine_Wood
  207.          scale <10.0, 100.0, 10.0>
  208.       }
  209.       finish {
  210.          crand 0.05
  211.          ambient 0.1
  212.          diffuse 0.7
  213.          reflection 0.5
  214.          specular 0.5
  215.       }
  216.    }
  217.  
  218.    translate <50.0, 10.0, -30>
  219. }
  220.  
  221. sphere { <250.0, 25.0, 350.0>, 30.0
  222.    texture {
  223.       Glass
  224.       finish { crand 0.05 }
  225.    }
  226. }      
  227.  
  228. union {
  229.    sphere { <0.0, 0.0, 0.0>, 40.0
  230.       pigment {
  231.          /* imagemap <1.0 -1.0 0.0> gif "city01.gif" once */
  232.          Gray40
  233.          scale 75
  234.          translate <-127.5, -7.5, 100.0> 
  235.       }
  236.       finish {
  237.          ambient 0.1
  238.          diffuse 0.5
  239.          reflection 0.2
  240.          /* refraction 0.4*/
  241.          /* ior 1.2       */
  242.          phong 0.1
  243.          phong_size 10
  244.       }
  245.    }          
  246.  
  247.    intersection {
  248.       object { Cylinder_Y scale <6.0, 1.0, 6.0> }
  249.       plane { y, -20.0 }
  250.  
  251.       pigment {
  252.          Pine_Wood
  253.          scale <10.0, 50.0, 10.0>
  254.       }
  255.       finish {
  256.          crand 0.05
  257.          ambient 0.1
  258.          diffuse 0.7
  259.          reflection 0.5
  260.          specular 0.5
  261.       }
  262.    }
  263.    translate <-100.0, 30.0, 100.0>
  264. }
  265.  
  266. light_source { <-100.0, 100.0, -200.0> colour White }
  267.